<?php
echo CHtml::link($deal->name,url('/deal/view',array('url'=>$deal->url)));
$status = wm()->get('deal.helper')->dealStatus($deal);
$active = $status == 'active';
$tippedOrClosed = $status == 'tipped' || $status == 'closed' || $status == 'paid';
if($active)
{
	$left = $deal->stats?$deal->purchaseMin-$deal->stats->bought:$deal->purchaseMin;
	?><p><?php echo $this->t('This deal requires <strong>{num} more people</strong> until we get it.', array(
		'{num}' => $left
	)); ?></p><?php
}
?>
<table>
<?php

	$access = $tippedOrClosed;
?>
	<tr>
		<td>
			<strong><?php echo $active
				?  $this->t('We will contact you soon regarding this deal.')
				:  $this->t('Url: ').CHtml::link($dealcallback->anchorText,HelperUrl::addhttp($dealcallback->callbackUrl),array('target'=>'_blank')); ?>
			</strong>
		</td>
	</tr>

</table>